Returns the closest position that satisfies a predicate.
'Declaration
Public Overloads Function Closest( _
ByVal As System.Func(Of C1TextPointer,Boolean), _
ByVal As System.Func(Of C1TextPointer,C1TextPointer,Integer), _
ByVal As C1TextElement _
) As C1TextPointer
public C1TextPointer Closest(
System.Func<C1TextPointer,bool> ,
System.Func<C1TextPointer,C1TextPointer,int> ,
C1TextElement
)
Parameters
- predicate
- The predicate that must be satisfied.
- distance
- A distance function.
- range
- The range to be searched in.
Return Value
The closest position that satisfies the predicate.